package com.foreveross.bsl.mam.model.rbac.domain;

import java.util.List;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

import com.foreveross.bsl.mongodb.domain.Entity;

/**
 * 用户特权表实体 <BR>
 * [功能详细描述]
 * 
 * @author Amberlo
 * @version [mam-model , 2013-6-20]
 */
@Document
public class Privilege extends Entity {
	/** 权限id */
	@Id
	private String id;

	/** 操作表主键ID */
	@Field("operations_ID")
	private List<String> operation_IDs;

	/** 应用主键ID */
	@Field("app_ID")
	private String app_ID;

	/** 模块主键ID */
	@Field("module_ID")
	private String module_ID;

	/** 模块主键ID */
	@Field("role_ID")
	private String role_ID;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	/**
	 * @return the app_ID
	 */
	public String getApp_ID() {
		return app_ID;
	}

	/**
	 * @param app_ID
	 *            the app_ID to set
	 */
	public void setApp_ID(String app_ID) {
		this.app_ID = app_ID;
	}

	/**
	 * @return the operation_IDs
	 */
	public List<String> getOperation_IDs() {
		return operation_IDs;
	}

	/**
	 * @param operation_IDs
	 *            the operation_IDs to set
	 */
	public void setOperation_IDs(List<String> operation_IDs) {
		this.operation_IDs = operation_IDs;
	}

	public String getModule_ID() {
		return module_ID;
	}

	public void setModule_ID(String module_ID) {
		this.module_ID = module_ID;
	}

	public String getRole_ID() {
		return role_ID;
	}

	public void setRole_ID(String role_ID) {
		this.role_ID = role_ID;
	}

}
